<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Вход</title>
</head>
<body>
	<c:if test="${param.invalid == 'true'}" ><span>Неверное имя пользователя или пароль</span></c:if>
	<form action="${pageContext.request.contextPath}/Login" method="POST">
		<fieldset><label>Login</label><input type="text" name="login" /></fieldset>
		<fieldset><label>Password</label>
		<input type="password" name="password" /></fieldset> 
		<input type="submit" name="submit" value="Войти">
	</form>
	
	<span>Зарегистрироваться</span> <span class="validationError">${param.validationError}</span>
				<form action="${pageContext.request.contextPath}/AddUser"
					method="POST">
					<fieldset>
						<legend>Имя пользователя</legend>
						<input type="text" name="login" />
					</fieldset>
					<fieldset>
						<legend>Пароль</legend>
						<input type="text" name="password" />
					</fieldset>
					<input type="submit" name="submit" value="Создать" />
				</form>
</body>
</html>